<template>
  <div  style="width: 100%; height: 100%;background-color: #f8f8f8;min-width: 1000px; ">
       <router-view> </router-view>
  </div>
</template>

<script >
//import { ViewBox } from 'vux'
import FastClick  from 'fastclick'
import {LOGOUT} from "../../store/mutation-types"
import appConfig from "../../../resources/config/app/app.json"
import Cookies  from 'cookies-js'

export default {
//    components: {
//        ViewBox
//    },
    data () {
        return {
            enterActiveClass:'',
            leaveActiveClass:''
        }
    },
 /*   mounted: function () {

        FastClick.attach(document.body);
        //添加主路由页面，以解决双层路由下，首层异步路由不加载，报错的问题

        //添加response拦截,处理token认证后页面踢出
        this.$http.interceptors.response.use(
            function (res) {
                //认证错误

                if(res.data.code=="401"||res.status==401){
                    this.$store.commit(LOGOUT)
                    this.$route.push("/login")
                    if(appConfig.saveTokenType==2){
                        Cookies.expire('authToken');
                    }else if (appConfig.saveTokenType==1) {}

                }
                return res;
            }
        )
    }*/
}
</script>

<style>
    .popHeight {
        /* height: 50px;*/
    }
    .p-10 {
        padding:5px;
    }
    .filter-color {
        color:#108ee9;
    }
    .m-3 {
        margin: 3px;
    }

    .nothing  {
        position: absolute;
        background-color: #eeeeee;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
</style>
